<?php
class Impact_View_Helper_ButtonControl extends Impact_View_Helper_FormControl
{
    public function buttonControl($value, $attributes = array()) 
    {
        if (empty($attributes['class'])) {
            $attributes['class'] = 'button';
        }

        if (empty($attributes['type'])) {
            $attributes['type'] = 'button';
        }

        $attributes['value'] = $value;

        return '<input ' . $this->_buildAttributeString($attributes) . ' />';
    }
}

// vim: sw=4:ts=4:sts=4:et
